<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
<!-- DocTest.qml -->
  <meta name="description" content="Represents a doc test case.">
  <title>DocTest QML Type | Test</title>
</head>
<body>
<li><a href="qdoc-test-qmlmodule.html" translate="no">Types</a></li>
<li>DocTest</li>
<div class="sidebar">
<div class="toc">
<h3 id="toc">Contents</h3>
<ul>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#methods">Methods</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
<li class="level2"><a href="#introduction">Introduction</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title" translate="no">DocTest QML Type</h1>
<!-- $$$DocTest-brief -->
<p>Represents a doc test case. <a href="#details">More...</a></p>
<!-- @@@DocTest -->
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import QDoc.Test 1.1</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> QDoc.Test 0.9</td></tr></table></div><ul>
<li><a href="qml-qdoc-test-doctest-members.html">List of all members, including inherited members</a></li>
</ul>
<h2 id="properties">Properties</h2>
<ul>
<li class="fn" translate="no"><b><a href="qml-qdoc-test-doctest.html#active-prop" translate="no">active</a></b> : bool</li>
<li class="fn" translate="no"><b><a href="qml-qdoc-test-doctest.html#name-prop" translate="no">name</a></b> : string</li>
</ul>
<h2 id="signals">Signals</h2>
<ul>
<li class="fn" translate="no"><b><a href="qml-qdoc-test-doctest.html#completed-signal" translate="no">completed</a></b>()</li>
<li class="fn" translate="no"><b><a href="qml-qdoc-test-doctest.html#foo-signal" translate="no">foo</a></b>(var <i>bar</i>)</li>
<li class="fn" translate="no"><b><a href="qml-qdoc-test-doctest.html#itsHappening-signal" translate="no">itsHappening</a></b>(bool <i>really</i>)</li>
</ul>
<h2 id="methods">Methods</h2>
<ul>
<li class="fn" translate="no"><b><a href="qml-qdoc-test-doctest.html#fail-method" translate="no">fail</a></b>(<i>message</i>)</li>
<li class="fn" translate="no"><b><a href="qml-qdoc-test-doctest.html#fail_hard-method" translate="no">fail_hard</a></b>(<i>msg</i>, <i>option</i>)</li>
</ul>
<!-- $$$DocTest-description -->
<h2 id="details">Detailed Description</h2>
<h2 id="introduction">Introduction</h2>
<p>A documentation test case, itself documented inline in DocTest.qml.</p>
<!-- @@@DocTest -->
<h2>Property Documentation</h2>
<!-- $$$active -->
<div class="qmlitem"><div class="qmlproto" translate="no">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="active-prop">
<td class="tblQmlPropNode"><p>
<span class="qmlextra">[default: true] </span><span class="name">active</span> : <span class="type">bool</span></p></td></tr>
</table></div></div>
<div class="qmldoc"><p>Whether the test is active.</p>
<p><b>See also </b><a href="qml-qdoc-test-doctest.html#name-prop" translate="no">name</a>.</p>
</div></div><!-- @@@active -->
<br/>
<!-- $$$name -->
<div class="qmlitem"><div class="qmlproto" translate="no">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="name-prop">
<td class="tblQmlPropNode"><p>
<span class="qmlextra">[required] </span><span class="name">name</span> : <span class="type">string</span></p></td></tr>
</table></div></div>
<div class="qmldoc"><p>Name of the test.</p>
<pre class="qml" translate="no"><span class="type"><a href="qml-test-nover-doctest.html" translate="no">DocTest</a></span> {
    <span class="name">name</span>: <span class="string">&quot;test&quot;</span>
    <span class="comment">// ...</span>
}</pre>
</div></div><!-- @@@name -->
<br/>
<h2>Signal Documentation</h2>
<!-- $$$completed[overload1]$$$completed -->
<div class="qmlitem"><div class="qmlproto" translate="no">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="completed-signal">
<td class="tblQmlFuncNode"><p>
<span class="name">completed</span>()</p></td></tr>
</table></div></div>
<div class="qmldoc"><div class="admonition note"><p><b>Note: </b>The corresponding handler is <code translate="no">onCompleted</code>.</p>
</div></div></div><!-- @@@completed -->
<br/>
<!-- $$$foo[overload1]$$$foovar -->
<div class="qmlitem"><div class="qmlproto" translate="no">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="foo-signal">
<td class="tblQmlFuncNode"><p>
<span class="name">foo</span>(<span class="type">var</span> <i>bar</i>)</p></td></tr>
</table></div></div>
<div class="qmldoc"><p>Signal with parameter <i translate="no">bar</i>.</p>
<div class="admonition note"><p><b>Note: </b>The corresponding handler is <code translate="no">onFoo</code>.</p>
</div></div></div><!-- @@@foo -->
<br/>
<!-- $$$itsHappening[overload1]$$$itsHappeningbool -->
<div class="qmlitem"><div class="qmlproto" translate="no">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="itsHappening-signal">
<td class="tblQmlFuncNode"><p>
<span class="name">itsHappening</span>(<span class="type">bool</span> <i>really</i>)</p></td></tr>
</table></div></div>
<div class="qmldoc"><p>Signals that something is <i translate="no">really</i> happening.</p>
<div class="admonition note"><p><b>Note: </b>The corresponding handler is <code translate="no">onItsHappening</code>.</p>
</div></div></div><!-- @@@itsHappening -->
<br/>
<h2>Method Documentation</h2>
<!-- $$$fail[overload1]$$$fail -->
<div class="qmlitem"><div class="qmlproto" translate="no">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="fail-method">
<td class="tblQmlFuncNode"><p>
<code translate="no">[since QDoc.Test 1.0] </code><span class="name">fail</span>(<i>message</i> = &quot;oops&quot;)</p></td></tr>
</table></div></div>
<div class="qmldoc"><p>Fails the current test case, with the optional <i translate="no">message</i>.</p>
<p>This method was introduced in QDoc.Test 1.0.</p>
</div></div><!-- @@@fail -->
<br/>
<!-- $$$fail_hard[overload1]$$$fail_hard -->
<div class="qmlitem"><div class="qmlproto" translate="no">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="fail_hard-method">
<td class="tblQmlFuncNode"><p>
<span class="name">fail_hard</span>(<i>msg</i> = &quot;facepalm&quot;, <i>option</i> = 123)</p></td></tr>
</table></div></div>
<div class="qmldoc"><p>Fails the current test case, hard.</p>
<ul>
<li>Prints out <i translate="no">msg</i>.</li>
<li>Accepts a random <i translate="no">option</i>.</li>
</ul>
</div></div><!-- @@@fail_hard -->
<br/>
</body>
</html>
